public class ExtendsDemo08 {
    public static void main(String[] args) {
        BenChiCar benChiCar = new BenChiCar();
        benChiCar.setName("bc250");
        benChiCar.setColor("黑色");
        benChiCar.run();
    }
}


class Car {
    private String name;
    private String color;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public void run() {
        System.out.println("go go go");
    }
}

class BenChiCar extends Car {

}
